package com.itbbj.principle.d3_OCP.demo2;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class SubEquation extends Equation{
    @Override
    public Equation generateEquation(){
        leftNum = generateRandom(0, 100);
        rightNum = generateRandom(0, 100);
        result = leftNum - rightNum;
        this.op = "-";
        return this;
    }
}
